package com.jsz.peini.common.util;

import java.io.IOException;
import java.lang.reflect.Type;

import com.alibaba.fastjson.serializer.DateCodec;
import com.alibaba.fastjson.serializer.JSONSerializer;

public class JszDateFormatSerializer extends DateCodec{
    public JszDateFormatSerializer(){
    	super();
    }

    @Override
    public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
    	if (object == null) {
    		serializer.out.write("\"\"");
    		return;
    	}
        super.write(serializer, object, fieldName, fieldType, features);
    }
}
